PATH  Mac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Icon Services and Utilities
>
Obtaining and Using Icons With Icon Services

   

Hit-Testing

Icon Services provides several ways to determine whether a user has interacted with an icon. To determine whether a user has clicked on an icon, use the function PtInIconRef. If you need to determine whether an icon falls with a given rectangle (like a selection rectangle, for example), use the function RectInIconRef. You can also use the function IconRefToRgn to do hit-testing.


© 1999 Apple Computer, Inc. – (Last Updated 03 Dec 99)